package com.fetchdata.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.fetchdata.service.InvestfirmService;

@Controller
@RequestMapping(value = "/mongo/investfrim")
public class InvestfirmController {
	
	@Autowired
	InvestfirmService investfirmService;

	@RequestMapping("/init")
    public String init() throws Exception {
		investfirmService.data();
		return null;
    }
}
